import * as React from 'react';
import {View, Text} from 'react-native';
import {context} from '../../store';
const {useContext} = React;
function ATest() {
  let [state] = useContext(context);
  return (
    <View>
      <Text>ATest</Text>
      <Text>全局变量:{state.userInfo.name || '无数据'}</Text>
    </View>
  );
}

export default ATest;
